#{extends 'EmploymentAction/layout.html' /}

<div id="crudList" class="">

    <h2 id="crudListTitle">新闻管理</h2>

    <div id="crudListSearch">
    </div>

    <div id="crudListTable">
        <form action="">
          <table>
           <thead>
            <tr>
              <th>新闻标题</th>
              <th>发布时间</th>
              <th>点击量</th>
              <th>状态</th>
              <th>来源</th>
              <th>新闻代码</th>
              <th>类型</th>
              <th>标签</th>
              <th>所属栏目</th>
              <th>管理人员</th>
              <th>删除</th>
            </tr>
           </thead>
	       #{if flash.success}
		    <tr>
			    <td colspan="9" style="text-align: center">
			    <font color="red">${flash.success}</font>
			    </td>
		    </tr>
	       #{/if}
	       #{list items:news,as:'newss'}
	       <tr>
	         <td><a href="@{show(newss.id)}">${newss.newTit}</a></td>
	         <td>${newss.newTime}</td>
	         <td>${newss.newHits}</td>
	         #{if newss.newSta == 1}
	           <td>新闻置顶</td>
	         #{/if}
	         #{else}
	           <td>未置顶</td>
	         #{/else}
	         <td>${newss.newSou}</td>
	         <td>${newss.newCode}</td>
	         <td>
	              #{if newss.newTyp == 0}
	                 普通新闻
	              #{/if}
	              #{else}
	               标题新闻
	              #{/else}
	         </td>
	         <td>${newss.newTag}</td>
	         <td>${newss.programa.proName}</td>
	         <td>${newss.managers?.manName}</td>
	         <td><a href="@{delete(newss.id)}">删除</a></td>
	       </tr>
	       #{/list}
          </table>
        </form>
    </div>

    <div id="crudListPagination">
    </div>

    <p id="crudListAdd">
        <a href="@{blank()}">添加</a>
    </p>

</div>
